Docker starts containers with restart policy on-failure
after host reset
#47846
Labels
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/0-triage
version/26.1
Description
It's a host failure, not a container failure so
none
policy should apply in such case. There is literally no way to make docker to act as supervisor for a container which only restarts it in case of container failure.Reproduce
a. create docker container with on-failure policy
b. reset HOST
c. docker ps => 1 container
Expected behavior
Do not start container with restart policy set to
on-failure
after host reset.docker version
docker info
Client: Docker Engine - Community Version: 26.1.3 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.14.0 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.27.0 Path: /usr/libexec/docker/cli-plugins/docker-compose
Additional Info
No response
The text was updated successfully, but these errors were encountered: